package com.ffdms.util;

import android.util.Log;

public class LoggerUtil {
	private static boolean LOG = true;
	private final static String TAG = "MobileOffice:=>";
	// log type
	public static final int LOG_D = 1000;
	public static final int LOG_E = 1001;
	public static final int LOG_I = 1002;
	public static final int LOG_V = 1003;
	public static final int LOG_W = 1004;

	public static void log(int typeCode, String msg) {
		if (LOG) {
			switch (typeCode) {
			case LOG_D:
				Log.d(TAG, msg);
				break;
			case LOG_E:
				Log.e(TAG, msg);
				break;
			case LOG_I:
				Log.i(TAG, msg);
				break;
			case LOG_V:
				Log.v(TAG, msg);
				break;
			case LOG_W:
				Log.w(TAG, msg);
				break;
			default:
				break;
			}
		}
	}

}
